]> dgit.raspbian.org Git - gnome-shell.git/commit
Network Menu: update the UI only when really needed
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 15 Nov 2011 17:22:24 +0000 (18:22 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 16 Dec 2011 07:58:11 +0000 (08:58 +0100)
commitf3cb9d0443e02da17dca6cec57e38e5721fe894c
treecc006b73695783672686bd9a95713ba0763cc26e
parentfcee7f2f3a91144ae576cc4c9918dcfee96119ab
Network Menu: update the UI only when really needed

By using Main.queueDeferredWork, we can ensure that most of the
menu contents (in particular, the heaviest parts like the list of
wifi networks) are not updated immediately as we receive signals
from NetworkManager. Instead, the menu is rebuilt some time later,
or as soon as the user opens the menu.
This means that it is no longer needed to optimize for the
access-point-added case, replacing a lot of buggy code with a safer
call to _queueCreateSection, which in turn should ensure that the
more menu, if existing, is always at the end and that at most 5 networks
are visible outside it.

https://bugzilla.gnome.org/show_bug.cgi?id=664124
js/ui/status/network.js